import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
Vue.use(VueResource)



import '../less/style.less'
Vue.use(VueRouter)




//导入mui组件
import '../lib/mui/css/mui.min.css'
//导入mui扩展字体库
import '../lib/mui/css/icons-extra.css'



//导入根组件
import app from '../vue/App.vue'

import MintUi from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUi)

//接受router.js
import router from './router.js'

import moment from 'moment'
//全局事件過濾器
Vue.filter("dateFormat",function (dataStr,pattern="YYYY-MM-DD HH:mm:ss") { 
        return moment(dataStr).format(pattern);
 })


 //導入縮略圖插件
 import VuePreview from 'vue-preview'
 Vue.use(VuePreview,{
    mainClass: 'pswp--minimal--dark',
    barsSize: {top: 0, bottom: 0},
    captionEl: true,
    fullscreenEl: true,
    shareEl: false,
    bgOpacity: 1,
    tapToClose: true,
    tapToToggleControls: false
  })

import 'vue2-animate/dist/vue2-animate.min.css'


let v = new Vue({
    el:"#app",
    data:{

    },
    methods:{

    },
    render:c=>c(app),
    router
})

